package com.itheima.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * reggie-com.itheima.util
 * Administrator
 * 2023-03-14
 * 10:37
 */

//用于封装配置文件在appliacation.yam指定key下的数据
@Data
@Component
@ConfigurationProperties(prefix = "regiee.oss")
public class OssProperties {
    //需要加依赖
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
